package cn.zf233.xcloud.config.lockpool;

import java.util.concurrent.locks.Lock;

/**
 * Created by zf233 on 2021/6/1
 * XCloud线程池接口
 */
public interface IXCloudThreadPool<T extends Lock> {

    T getDownloadLock(Long userId);

    T getCapacityLock(Long userId);

    T getMoveOrCopyLock(Long userId);

    T getFileRenameLock(Long userId);

    T getShareLock(Long userId);

    void unLock(T lock);

    void reset();
}
